<div ng-controller="MasterNewDialogCtrl" class="nav"  ng-switch on="currentStep">
    <li  ng-switch-when="1">
        <div class="modal-header">
            <h3 class="modal-title">新建</h3>
        </div>
        <div class="modal-body">
            <ul class="nav">
                <li id="global_create_project"><a href="javascript:;" ng-click='show_new_project_dialog($event)'>
                    <i class="fa fa-inbox fa"></i> 新建项目 <br>
                    <span class="text-muted"> 项目是一组成员和一组任务、文件、话题、文档、日程的集合。 </span>
                </a></li>
                <li class="divider"></li>
                <li id="global_create_team"><a href="javascript:;" ng-click='show_new_team_dialog($event)'> <i
                        class="fa fa-sitemap"></i> 新建团队 <br>
                <span
                        class="text-muted"> 团队可以是一个公司或者一个部门，使用团队组织项目和成员。 </span> </a>
                </li>
            </ul>
        </div>
    </li>
    <li  ng-switch-when="2">
            <div class="modal-header">
                <button type="button" class="close" aria-hidden="true"  ng-click="cancel()">&times;</button>
                <h4 class="modal-title"><i class="fa fa-angle-double-left fa-lg"  ng-click="back()"  ng-hide="currentStep==dialogEntryStep"></i><i class="fa fa-inbox"></i>  新建项目</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" novalidate role="form"  id="newProjectFrm" name="newProjectFrm" >
                    <div class="form-group">
                        <label for="iProjectName" class="col-sm-2 control-label">项目名称</label>
                        <div class="col-sm-10">
                            <input type="text" required class="form-control input-lg" ng-model="project.name" id="iProjectName" placeholder="请输入项目名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="iOwner" class="col-sm-2 control-label">所有者</label>
                        <div class="col-sm-4">
                            <select required class="form-control" selectpicker="" data-live-search="true" data-loading-text="加载中..." ng-model="project.team" ng-show="teams.length>0" ng-options="team.teamName for team in teams">
                            </select>
                            <span ng-hide="teams.length>0"  class="form-control" id="iOwner">数据加载中...</span>
                        </div>
                        <div class="col-sm-2"><button type="button"  class="btn btn-info" ng-click="show_new_team_dialog($event)">新建团队</button></div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default"  ng-click="cancel()">取消</button>
                <button type="button" class="btn btn-success" add-Project-Btn ng-disabled="newProjectFrm.$invalid||disabled">创建</button>
            </div>
    </li>
    <li  ng-switch-when="3">
        <div class="modal-header">
            <button type="button" class="close"  ng-click="cancel()" aria-hidden="true">&times;</button>
            <h4 class="modal-title"><i class="fa fa-angle-double-left fa-lg"  ng-click="back()"  ng-hide="currentStep==dialogEntryStep"></i>  <i class="fa fa-sitemap"></i>  新建团队</h4>
        </div>
        <div class="modal-body">
            <form class="form-horizontal" novalidate role="form"  id="saveTeamFrm" name="saveTeamFrm" >
                <div class="form-group">
                    <label for="iTeamName" class="col-sm-2 control-label">团队名称</label>

                    <div class="col-sm-10">
                        <input type="text" class="form-control input-box" ng-maxlength="20" ng-minlength="2" required="true" id="iTeamName" ng-model="team.teamName" placeholder="请输入团队名称，2到20个字">
                    </div>
                </div>
                <div class="form-group">
                    <label for="iTeamRemark" class="col-sm-2 control-label">团队介绍</label>
                    <div class="col-sm-10">
                        <textarea class="form-control" id="iTeamRemark" rows="5" ng-maxlength="200" ng-minlength="0" cols="50" ng-model="team.teamRemark" placeholder="请输入团队介绍,最多200个字 " ></textarea>
                    </div>
                </div>

            </form>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            <button type="button" id="newTeamAction-submit-btn" add-Team-Btn class="btn blue pull-right" ng-disabled="saveTeamFrm.$invalid||disabled">
                创建 <i class="m-icon-swapright m-icon-white"></i>
            </button>
        </div>
    </li>
</div>